package com.simpletaskapp.persistence;

public enum TaskColumns {
	
	ID_COLUMN("ID"),
	DESCRIPTION_COLUMN("DESCRIPTION_COLUMN"),
	CREATION_DATE_COLUMN("CREATION_DATE_COLUMN"),
	DONE_COLUMN("DONE_COLUMN");
	
	private String name;
	
	TaskColumns(String name) {
		this.name = name;
	}
	
	public String getName() {
		return name;
	}
	
	public static String[] getAllColumns() {
		String[] columns = new String[4];
		
		columns[0] = ID_COLUMN.getName();
		columns[1] = DESCRIPTION_COLUMN.getName();
		columns[2] = CREATION_DATE_COLUMN.getName();
		columns[3] = DONE_COLUMN.getName();
				
		return columns;
	}
}